#ifndef CLIENT_H
#define CLIENT_H

#include <QtNetwork>

class Client
{
public:
    Client(QTcpSocket *socket);

    void SetNickname(QString name);

    void SendMessage(QByteArray message);

    QTcpSocket* GetSocket();
    QString GetNickname();

    quint16 messageSize;

private:
    QTcpSocket *socket;
    QString nickname;

};

#endif // CLIENT_H
